package com.xiaoyu.gateway;


import com.xiaoyu.cloud.core.config.CustomLoadBalancerConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;


/**
 * @author zxy
 */

@LoadBalancerClients({
        @LoadBalancerClient(value = "auth-service", configuration = CustomLoadBalancerConfiguration.class),
        @LoadBalancerClient(value = "system-service", configuration = CustomLoadBalancerConfiguration.class),
        @LoadBalancerClient(value = "user-service", configuration = CustomLoadBalancerConfiguration.class)})
@SpringBootApplication(scanBasePackages = "com.xiaoyu",exclude=DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
public class XiaoYuGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(XiaoYuGatewayApplication.class, args);
    }

}
